import request from '@/utils/request'

// 查询库存盘点列表
export function listPandian(query) {
  return request({
    url: '/mes/wm/pandian/list',
    method: 'get',
    params: query
  })
}

// 查询库存盘点详细
export function getPandian(id) {
  return request({
    url: '/mes/wm/pandian/' + id,
    method: 'get'
  })
}

// 新增库存盘点
export function addPandian(data) {
  return request({
    url: '/mes/wm/pandian',
    method: 'post',
    data: data
  })
}

// 修改库存盘点
export function updatePandian(data) {
  return request({
    url: '/mes/wm/pandian',
    method: 'put',
    data: data
  })
}

// 删除库存盘点
export function delPandian(id) {
  return request({
    url: '/mes/wm/pandian/' + id,
    method: 'delete'
  })
}

export function updatePandianStatus(id) {
  return request({
    url: '/mes/wm/pandian/updatePandianStatus/' + id,
    method: 'get'
  })
}
export function handlePlusAndLoss(id) {
  return request({
    url: '/mes/wm/pandian/handlePlusAndLoss/' + id,
    method: 'get'
  })
}

